AnnieRoot.index=AnnieRoot.index||{};
index.MainMc=function(){
	var s = this;
	annie.MovieClip.call(s);
    /*_a2x_need_start*/s.do_mc=null;/*_a2x_need_end*/

    annie.initRes(s,"index","MainMc");
    s.addEventListener(annie.Event.END_FRAME,function (e) {
		index.Cars.num++;
		if(index.Cars.num>4){
			index.Cars.num=1;
		}
		s.gotoAndPlay("again");
    });
	s.addEventListener(annie.Event.CALL_FRAME,function (e) {
        s.stop();
        var time=5000;
        if(s.currentFrame>100)
        	time=4000;
		setTimeout(function () {
			s.play();
        },time);
    })
};
A2xExtend(index.MainMc,annie.MovieClip);
